package com.spring.shops.admin.controller.product;

import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.ProdTagVO2;
import com.spring.shops.service.ProdTagService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//产品管理->产品分组模块
@RestController
@RequestMapping("/prod/prodTag")
public class ProdTagController2 {
    @Autowired
    private ProdTagService2 service;

    /**
     * 返回产品的标签列表
     * @return
     */
    @GetMapping("/listTagList")
    public ServerResponseEntityVoid<List<ProdTagVO2>> listTagList(){
       return service.listTagList();
    }
}
